package com.zhangtai.modules.dto;


import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class AnnouncementDto {

    /**
     * 主键id
     */
    @TableId
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    @ApiModelProperty(value="主键id",required = false)
    private Long id;
    /**
     * 标题
     */
    @ApiModelProperty(value="标题",required = false)
    private String title;
    /**
     * 简标题
     */
    @ApiModelProperty(value="简标题",required = false)
    private String subtitle;
    /**
     * 类型  1 系统 2 公司
     */
    @ApiModelProperty(value="类型  1 系统 2 公司",required = false)
    private Integer type;
    /**
     * 内容
     */
    @ApiModelProperty(value="内容",required = false)
    private String content;
    /**
     * 插入时间
     */
    @ApiModelProperty(value="插入时间",required = false)
    private Date time;
    /**
     * 是否新   0否 1 是
     */

    @ApiModelProperty(value=" 是否新   0否 1 是",required = false)
    private Integer isNew;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间",required = false)
    private Date createTime;
    /**
     * 用户名
     */
    @ApiModelProperty(value="用户名",required = false)
    private String createName;
    /**
     * 创建人code
     */
    @ApiModelProperty(value="创建人code",required = false)
    private String createCode;
    /**
     * 备注
     */
    @ApiModelProperty(value="备注",required = false)
    private String remarks;


    /**
     *  文件地址路径
     */
    @ApiModelProperty(value="文件地址路径",required = false)
    private List<String> fileUrlList;

}
